<!DOCTYPE html>
<html>
<head>
    <include file="Public/head" />
</head>
<body>

<div class="ui-wrap">

    <!--s banner-1-->
    <div class="swiper-container swiper-container-1">
        <div class="swiper-wrapper">
            <div class="swiper-slide">
            	<a href="javascript:;">
                	<img src="__IMG__/Home/banner_01-1.jpg"/>
                </a>
            </div>
            <div class="swiper-slide">
            	<a href="{:U('Lord/index')}">
                	<img src="__IMG__/Home/banner_01-2.jpg"/>
                </a>
            </div>
        </div>
        <div class="swiper-pagination swiper-pagination-1"></div>
    </div><!--e banner-1-->

    <div class="ui-title">
        <span>数据统计</span>
    </div>

    <!--s home-tiled-->
    <div class="ui-home-tiled">
        <a href="{:U('Lord/rank')}">
            <span>{$arr[0]['lord_count']}</span>
            <p>参与群主</p>
        </a>
        <a href="{:U('Lord/rank')}">
            <span><eq name="arr[0]['voet_num']" value="">0<else/>{$arr[0]['voet_num']}</eq></span>
            <p>累计投票</p>
        </a>
        <a href="{:U('Lord/rank')}">
            <span><eq name="arr[0]['scan_num']" value="">0<else/>{$arr[0]['scan_num']}</eq></span>
            <p>累计访问</p>
        </a>
    </div>
    <!--e home-tiled-->

    <!-- s icon-btn -->
    <div class="ui-home-icon-btn">
        <a href="{:U('Lord/index')}"><span>我要报名</span></a>
        <a href="{:U('Lord/rank')}"><span>去投票</span></a>
    </div>
    <!-- e icon-btn -->

    <div class="ui-tab-container">

        <div class="ui-tabs-nav orange">
            <a href="javascript::" class="swiper-pagination-bullet swiper-pagination-bullet-active">大会介绍</a>
            <a href="javascript::" class="swiper-pagination-bullet">特邀嘉宾</a>
            <a href="javascript::" class="swiper-pagination-bullet">大会议程</a>
            <a href="javascript::" class="swiper-pagination-bullet" >投票说明</a>
        </div>
        <div class="swiper-wrapper tabs-list">
        	
        	<div class="swiper-slide show">
                <!--tab1-->
                <div class="ui-home-intro ui-address">
                	<!--<a href="http://mp.weixin.qq.com/s?__biz=MzAwOTQ5OTAwNg==&mid=408827039&idx=1&sn=b3a6625fd7bc943c9135d15f54a6b20c&scene=1&srcid=12178HhRJxsBqbJ7NBqrFa8D#rd"><img src="__IMG__/Home/addres-btn.png"/></a>-->
                    <img src="__IMG__/Home/home-intro.jpg"/>
                </div>

            </div>

            <div class="swiper-slide">
                <!--tab2-->
                <div class="ui-guests-top">
                    <p>嘉宾排名不分先后</p>
                </div>
                <ul class="ui-guests-list">
                    <li>
                        <div class="ui-guests-img">
                            <img src="__IMG__/Home/guests-1.gif"/>
                        </div>
                        <div class="ui-guests-btn">
                            <a href="javascript::"><span id="voet_num1">{$all[1]}</span></a>
                            <a href="javascript:;" onclick="checkAjax(1)">赞一个</a>
                        </div>
                    </li>
                    <li>
                        <div class="ui-guests-img">
                            <img src="__IMG__/Home/guests-2.gif"/>
                        </div>
                        <div class="ui-guests-btn">
                            <a href="javascript::"><span id="voet_num2">{$all[2]}</span></a>
                            <a href="javascript::" onclick="checkAjax(2)">赞一个</a>
                        </div>
                    </li>
                    <li>
                        <div class="ui-guests-img">
                            <img src="__IMG__/Home/guests-3.gif"/>
                        </div>
                        <div class="ui-guests-btn">
                            <a href="javascript::"><span id="voet_num3">{$all[3]}</span></a>
                            <a href="javascript::" onclick="checkAjax(3)">赞一个</a>
                        </div>
                    </li>
                </ul>
            </div>

            <div class="swiper-slide ">
                <!--tab3-->
                <div class="ui-home-intro">
                    <img src="__IMG__/Home/home-agenda.jpg"/>
                </div>
            </div>

            <div class="swiper-slide">
                <!--tab4-->
                <div class="ui-home-intro ui-address">
                    <img src="__IMG__/Home/home-awards.jpg"/>
                </div>
            </div>

        </div>
    </div><!--end tab-->

    <!--s banner-2-->
    <div class="swiper-container swiper-container-2">
        <div class="swiper-wrapper">
            <div class="swiper-slide">
                <a href="http://m.jiabangougo.com/home.html">
                	<img src="__IMG__/Home/banner-02-1.jpg"/>
            	</a>
            </div>
            <div class="swiper-slide">
                <a href="javascript:;">
                	<img src="__IMG__/Home/banner-02-2.jpg"/>
            	</a>
            </div>
            <div class="swiper-slide">
                <a href="http://www.bd-tou.com/wap/index.php?ctl=deal&act=show&id=79#">
                	<img src="__IMG__/Home/banner-02-3.jpg"/>
            	</a>
            </div>
            <div class="swiper-slide">
                <a href="javascript:;">
                	<img src="__IMG__/Home/banner-02-4.jpg"/>
            	</a>
            </div>
        </div>
    </div><!--e banner-2-->

    <div class="ui-title">
        <span>支持单位</span>
    </div>

    <!--s support-list-->
    <div class="ui-support-wrap">
    	<img src="__IMG__/Home/teamwork-1.jpg"/>
    	<img src="__IMG__/Home/teamwork.jpg"/>
    	<img src="__IMG__/Home/teamwork-2.jpg"/>
    </div>
    <!--<ul class="ui-support-list">
        <li>
            <a href="javascript::"><img src="__IMG__/Home/support-9.jpg"/></a>
            <a href="javascript::"><img src="__IMG__/Home/support-1.jpg"/></a>
            <a href="javascript::"><img src="__IMG__/Home/support-2.jpg"/></a>
        </li>
        <li>
            <p>媒体：</p>
            <a href="javascript::"><img src="__IMG__/Home/support-3.jpg"/></a>
            <a href="javascript::"><img src="__IMG__/Home/support-4.jpg"/></a>
            <a href="javascript::"><img src="__IMG__/Home/support-5.jpg"/></a>
            <a href="javascript::"><img src="__IMG__/Home/support-6.jpg"/></a>
            <a href="javascript::"><img src="__IMG__/Home/support-7.jpg"/></a>
            <a href="javascript::"><img src="__IMG__/Home/support-8.jpg"/></a>
        </li>
    </ul>-->
    	
    <!--e support-list-->

    <div class="ui-home-btn visibility">
        <a href="javascript:;" class="l"><i class="fa fa-commenting"></i></a>
        <a href="javascript:;" class="r">购买门票</a>
    </div>
    
    <div class="ui-home-btn show">
        <a href="{:U('Forum/index')}" class="l"><i class="fa fa-commenting"></i></a>
        <neq name="info['lord_id']" value="">
            <a href="{:U('Lord/lord_info?lord_id='.$info['lord_id'])}" class="l green"><i class="fa fa-user"></i></a>
        </neq>
        <a href="{:U('Tickets/order')}" class="r">购票</a>
    </div>

</div>

<script language="javascript">
    /* 投票 */
    function checkAjax(guests){
        $.ajax({
            url:"{:U('Index/ajaxDian')}",
            type:'post',
            data:{guests:guests},
            success:function(result){
                if(result.status==1){
                    $('#voet_num'+guests).text(result.num);
                }else{
                    alert('您已经点过赞了');
                }
            }
        });
    };

    var mySwiper = new Swiper('.swiper-container-1',{speed:500,pagination : '.swiper-pagination-1',autoplay : 3000});
    var mySwiper = new Swiper('.swiper-container-2',{speed:500,pagination : '.swiper-pagination-2',autoplay : 3000});
    $('.swiper-pagination-bullet').click(function(){
        $('.swiper-pagination-bullet').removeClass('swiper-pagination-bullet-active');
        $('.tabs-list .swiper-slide').removeClass('show');
        $(this).addClass('swiper-pagination-bullet-active');
        $('.tabs-list .swiper-slide').eq($(this).index()).addClass('show');
    });
</script>
</body>
</html>
